Repository navigation
[Feature][HiSparse] Import P KV into Ascend Decode Host Source - #2
Closed
LifeOfCoffee wants to merge 2 commits into
Closed
LifeOfCoffee wants to merge 2 commits into
LifeOfCoffee wants to merge 2 commits into
Conversation
Add a dedicated HiSparse PD connector that reuses Mooncake transfer while routing main KV through Host Source and Indexer KV to the NPU. Repack split MLA components by token before completing the Host import. Tested GLM 5.2 10-layer TP2 P and TP2 D on Ascend 950 with one-page and two-page prefix continuation; both matched local Decode output. The remote test used a mixed Python installation, so an exact branch build remains for CI. Signed-off-by: LifeOfCoffee <lcyzhyx@163.com>
Signed-off-by: LifeOfCoffee <lcyzhyx@163.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it?
Adds
HiSparsePDConnectorfor asymmetric P/D serving: Prefill uses ordinary KV plus AscendStore/Memcache; Decode uses HiSparse and pulls KV directly from Prefill. The connector reuses Ascend Mooncake/HIXL transport without adding a NIXL dependency.The Decode import writes main MLA KV into Host Source and Indexer KV into NPU. HMA's Host Source is already ACL-registered, so Mooncake transfers through a separate pinned Host staging region. Split Prefill NoPE/RoPE components are repacked by token into HiSparse Source rows before Core completes the Host import and restores the last Resident page.
This is stacked on the existing colocated pooling branch (Esir98/vllm-ascend@
5ebaa173), itself based on vllm-project#20926.Does this PR introduce any user-facing change?
Yes. It adds a connector and documents the P/D configuration. A numbered release note fragment will be added to this draft PR.
How was this patch tested?
ruff check,ruff format --check, Python compile check andgit diff --checkpassed.bash format.sh cicould not run on the Windows host because Bash is unavailable.Checklist
Testing